
#include <machine/asm.h>
ENTRY(strcmp)
	pushl	%esi
	movl    12(%esp), %ecx
	movl	8(%esp), %esi
	decl	%ecx
1:
	incl	%ecx
	lodsb
	cmpb	0(%ecx), %al
	jne 2f
	testb	%al, %al
	jne 1b
2:
	subb	0(%ecx), %al
	movsbl	%al, %eax
	popl	%esi
	ret
END(strcmp)
